package com.threebrothers.lib_mvi.base

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.threebrothers.lib_mvi.IView

abstract class BaseMVIFragment : BaseLazyLoadFragment(),IView {
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)
        generateViewModel()
    }

    override fun onResume() {
        super.onResume()
        handleState()
    }
    /**
     * 创建viewModel
     */
    abstract fun generateViewModel()
}